package com.lfy.controller;

import com.lfy.dao.UserDao;
import com.lfy.service.TestSendService;
import org.apache.catalina.core.ApplicationPushBuilder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class EventTestController {

    @Resource
    private TestSendService service;

    @GetMapping("/eventtest")
    public String sendMsg(){
        service.send();
        return "ok";
    }

}
